var MAGIC_EDITOR_CONFIG = {
    baseURL: 'http://39.105.110.25:18189/api/admin', //必填
    serverURL: 'http://39.105.110.25:18189/api/',    // 必填
    title: '产融数据服务平台',
    defaultTheme: 'default',
    defaultExpand: false,
    checkUpdate: false,
    version: "1.4.2",
    //jdbcDrivers:['driver1','driver2'],
    //datasourceTypes:['type1', 'type2'],
    options: [['is_publish', '是否发布','false'],
        ['require_login','是否必须登录','0'],
        ['anonymous', '是否允许匿名登录', '1'],
        ['require_token', '是否检查token', 'false'],
        ['require_traffic', '该接口需要记录流量', 'false']],
    blockClose: true,   // 是否阻止离开页面
    autoSave: true,
    decorationTimeout: 10000,
    header: {
    skin: true,
        document: true,
        repo: true,
        qqGroup: true
    },
    request: {
        beforeSend: function (config) {
            console.log('请求设置', config);
            return config;
        },
        onError: function (err) {
            console.log('请求出错');
            return Promise.reject(err)
        },
    },
    response: {
        onSuccess: function(resp){console.log('请求成功',resp);return resp;},
        onError: function(err){console.log('请求出错');return Promise.reject(err)},
    },
    themes: {
        skinName: { // 自定义皮肤， 以下配置参数复制自 dark 皮肤
            editor : {  // editor部分参考monaco-editor的皮肤设置
                base: 'vs-dark',
                    rules: [
                        { foreground: 'A9B7C6' },
                        { token: 'keywords', foreground: 'CC7832',fontStyle : 'bold'},
                        { token: 'keyword', foreground: 'CC7832',fontStyle : 'bold'},
                        { token: 'number', foreground: '6897BB' },
                        { token: 'string', foreground: '6A8759',fontStyle : 'bold' },
                        { token: 'string.sql', foreground: '6A8759'},
                        { token: 'key', foreground: '9876AA' },
                        { token: 'string.key.json', foreground: '9876AA' },
                        { token: 'string.value.json', foreground: '6A8759' },
                        { token: 'keyword.json', foreground: '6897BB' },
                        { token: 'operator.sql', foreground: 'CC7832',fontStyle : 'bold'},
                        { token: 'string.invalid', foreground: '008000' ,background : 'FFCCCC'},
                        { token: 'string.escape.invalid', foreground: '008000' ,background : 'FFCCCC'},
                        { token: 'string.escape', foreground: '000080',fontStyle : 'bold'},
                        { token: 'comment', foreground: '808080'},
                        { token: 'comment.doc', foreground: '629755'},
                        { token: 'string.escape', foreground: 'CC7832'}
                    ],
                    colors: {
                        'editor.background': '#2B2B2B',
                        'editorLineNumber.foreground': '#999999',	//行号的颜色
                        'editorGutter.background' : '#313335',	//行号背景色
                        'editor.lineHighlightBackground' : '#323232',	//光标所在行的颜色
                        'dropdown.background' : '#3C3F41',	//右键菜单
                        'dropdown.foreground' : '#BBBBBB',	//右键菜单文字颜色
                        'list.activeSelectionBackground': '#4B6EAF',	//右键菜单悬浮背景色
                        'list.activeSelectionForeground' : '#FFFFFF',	//右键菜单悬浮文字颜色
                }
            },
            styles : {  // css变量控制
                'background' : '#3C3F41',
                'toolbox-background' : '#3C3F41',
                'middle-background' : '#313335',
                'middle-border' : '#323232',
                'selected-background' : '#323232',
                'hover-background' : '#353739',
                'selected-color' : '#fff',
                'color' : '#bbb',
                'icon-color' : '#AFB1B3',
                'header-title-color': '#bbb',
                'header-version-color' : '#999',
                'header-default-color' : '#AFB1B3',
                'button-hover-background' : '#2D2F30',
                'border-color': '#323232',
                'toolbox-list-label-color' : '#bbb',
                'toolbox-list-span-color':'#787878',
                'toolbox-border-color' : '#323232',
                'toolbox-list-hover-background' : '#0D293E',
                'toolbox-border-right-color' : '#555555',
                'footer-border-color' : '#323232',
                'tab-bar-border-color' : '#323232',
                'input-border-color' : '#646464',
                'input-border-foucs-color' : '#3D6185',
                'input-background' : '#45494A',
                'empty-background' : '#282828',
                'empty-key-color' : '#489DF6',
                'empty-color' : '#A0A0A0',
                'dialog-border-color' : '#282828',
                'dialog-shadow-color' : '#151515',
                'dialog-button-hover-background' : '#365880',
                'dialog-button-hover-border-color' : '#43688C',
                'dialog-button-background' : '#4C5052',
                'dialog-button-border' : '#5E6060',
                'table-col-border-color' : '#333638',
                'table-row-border-color' : '#333638',
                'table-hover-background' : '#4B6EAF',
                'debug-line-background' : '#2D6099',
                'breakpoints-background' : '#C75450',
                'breakpoint-line-background' : '#3a2323',
                'table-even-background' : '#414547',
                'button-disabled-background' : '#5A5A5A',
                'select-background' : '#3C3F41',
                'select-hover-background' : '#3C3F41',
                'select-option-background':'#3C3F41',
                'select-option-hover-background':'#4B6EAF',
                'select-inputable-background':'#45494a',
                'select-inputable-border':'transparent',
                'toolbox-list-header-icon-color': '#AFB1B3'
            }
        }
    }
};